<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="java.util.List,dao.Users"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户</title>
</head>
<body>
	<h1>用户</h1>
	<p>${error}</p>
	<%
		List<Users> list=(List<Users>)request.getAttribute("list");
		for(Users obj:list){
	%>
	<table width="600" border="1">
		<tr>
			<td>ID:</td>
			<td><%=obj.getId() %></td>
		</tr>
		<tr>
			<td>账号：</td>
			<td><%=obj.getUsername() %></td>
		</tr>
		<tr>
			<td>昵称：</td>
			<td><%=obj.getNickname()%></td>
		</tr>
	</table>
	<%
		}
	%>
	<form action="control.jsp" method="post">
			<input name="submittype" type="submit" value="返回"/>
  	   </form>
	<form action="quit" method="post">
		<input type="submit" name="submittype" value="退出登录">
	</form>
</body>
</html>